<?php
  require_once('inc_admin.php');
  //连接到数据库  
  connect();
  //用户id是通过GET方法提交的   
  $id = $_GET['id'];
  $sql = "update zqyorders set zqyorderstate='2' where zqyid={$id}";
  $result = mysql_query($sql) or die('发货失败！'.mysql_error());
if(!$result){
    echo "发货失败！<br/>";
    echo "<a href='zqyorderlist.php?id={$id}'>返回</a>";    
  }else{    
    redirect('zqyorderlist.php', '发货成功！');
  }    

?>